import { Agent } from 'grey-agent'


const agent = new Agent<{ json: boolean }>();
agent.domain = "";

agent.use('before', async e => {
    if (e.option.json === false) return e;
    e.request.set({ 'Content-Type': 'application/json' })
    return e;
})

export default agent;